﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Common;

namespace PostSubmit
{
    public partial class MD5T : Form
    {
        public MD5T()
        {
            InitializeComponent();
            cmb_m.SelectedIndex = 0;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string str = rtb_str.Text;
            string result = MD5.StringToMd5(str, MD5.MD5SECRET);
            rtb_result.Text = result;
        }

        private void MD5T_Load(object sender, EventArgs e)
        {

        }

        private void button3_Click(object sender, EventArgs e)
        {
            string str = string.Format("{0}{1}{2}{3}", txt_value.Text, txt_orderId.Text, txt_memberId.Text, txt_plat.Text);
            string result = MD5.StringToMd5(str, MD5.MD5SECRET);
            rtx_outValue.Text = result;
        }

        private void button4_Click(object sender, EventArgs e)
        {
            rt_des.Text = DES.Encode(tb_des.Text, DES.SECRET);
        }
    }
}
